package com.kgo.eidtor.controller;

import com.kgo.eidtor.entity.SysCodeBean;
import com.kgo.eidtor.service.SysCodeService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author keepgoon
 * @Description: TODO
 * @date 2019/1/3115:46
 */
@RestController
@CrossOrigin
@RequestMapping(value="/sys")
public class SysCodeController {
    @Resource
    private SysCodeService sysCodeService;
    @RequestMapping(value = "/code" ,method = RequestMethod.GET,produces="text/plain;charset=UTF-8")
    public String getSysCode(SysCodeBean sysCode){
        return sysCodeService.getSysCode(sysCode);
    }
}
